<%@page contentType="text/html;charset=utf-8"%>
<%@taglib uri="/struts-tags"  prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>生成订单 - 当当网</title>
		<link href="../css/login.css" rel="stylesheet" type="text/css" />
		<link href="../css/page_bottom.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="../js/jquery-1.4.3.js"></script>
		<script type="text/javascript">
			function next(){
				var url = "<%=request.getContextPath()%>/order/address_form.jsp";
				window.location=url;
			}
			function cls(){
				var url = "<%=request.getContextPath()%>/cart/toCart";
				window.location=url;
			}
		</script>
	</head>
	<body>
		<%@include file="../common/head1.jsp"%>
		<div class="login_step">
			生成订单骤:
			<span class="red_bold">1.确认订单</span> > 2.填写送货地址 > 3.订单成功
		</div>
		<div class="fill_message">

			<table class="tab_login">
				<tr>
					<td valign="top" class="w1" style="text-align: left">
						<b>序号</b>
					</td>
					<td valign="top" class="w1" style="text-align: left">
						<b>商品名称</b>
					</td>
					<td valign="top" class="w1" style="text-align: left">
						<b>商品单价</b>
					</td>
					<td valign="top" class="w1" style="text-align: left">
						<b>商品数量</b>
					</td>
					<td valign="top" class="w1" style="text-align: left">
						<b>小计</b>
					</td>
				</tr>

				<!-- 订单开始 -->
					<s:iterator value="cartItems" status="status">
					<tr>
						<td valign="top">
							<s:property value="#status.index+1"/>
						</td>
						<td valign="top">
							${pro.productName}
						</td>
						<td valign="top">
							${pro.dangPrice }
						</td>
						<td valign="top">
							${qty }
						</td>
						<td valign="top">
							${(qty)*(pro.dangPrice) }
						</td>
					</tr>
					</s:iterator>
				<!-- 订单结束 -->
				<tr>
					<td valign="top" class="w1" style="text-align: left" colspan="5">
						<b>总价￥${cost}</b>
					</td>
				</tr>
			</table>
			<br />
			<br />
			<br />
			<form method="post" action="next.action" id="ctl00">
			<div class="login_in">
				<%--<a href="/cart/toCart.action"><input id="btnClientRegister" class="button_1" name="submit"
					type="submit" value="取消" /></a> --%>
			
				<%-- <a href="/order/address_form.jsp"><input id="btnClientRegister" class="button_1" name="submit"
					type="submit" value="下一步" /></a> --%>
				<a href="#.html" onclick="cls()"><input id="btnClientRegister" class="button_1"
					type="button" value="取消" /></a>
				<a href="#.html" onclick="next()"><input id="btnClientRegister" class="button_1" name="submit"
					type="submit" value="下一步" /></a>
			</div>
			</form>
		</div>
		<%@include file="../common/foot1.jsp"%>
	</body>
</html>

